/**
 * 学习规划接口
 */
import base from './base'
export default class learnPlan extends base {
  static major(majorType, name) {
    let url = this.baseUrl + `/majorList.post/`
    let params = {
      majorType,
      name
    }
    return this.post(url, params)
  }
  static province(project2Id) {
    let url = this.baseUrl + `/province.post/${project2Id}`
    return this.get(url)
  }
  static sleepTime(time) {
		return this.sleep(time)
  }
  static getItem(open_id) {
    let url = this.baseUrl + '/payingStudent.get/'
    return this.get(url + open_id)
  }
  static getInfo({cityID, recordlCode, time, professionCode}) {
    let url = this.baseUrl + '/touristExam.post'
    let params = {
      cityId: cityID,
      projectId: professionCode,
      registerEnd: time,
      majorType: recordlCode
    }
    return this.post(url, params)
  }
}
